#include "qtemptext.h"

QTempText::QTempText()
{

}

void QTempText::keyPressEvent(QKeyEvent *event)
{
    if(event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter)
    {
        emit returnPressed();
        event->ignore();
    }
    else
    {
        QTextEdit::keyPressEvent(event);
    }
}
